package createThread.cn.tedu.threaddemo.callback;

public class Main {
    public static void main(String[] args) {
        Worker worker = new Worker();
        worker.doWork(new Callback() {
            @Override
            public void onSuccess(String result) {
                System.out.println("收到回调结果：" + result);
            }

            @Override
            public void onFailure(String s) {
                System.out.println("收到回调结果：" + s);
            }
        });
    }
}